#ifndef REGISTERWINDOW_H
#define REGISTERWINDOW_H
#include "dbmanager.h"
#include <QObject>
#include <QQmlApplicationEngine>
#include <QDebug>
class RegisterWindow: public QObject
{
    Q_OBJECT
public:
    explicit RegisterWindow(QObject *parent = nullptr);
signals:
    void sendRegisterInfo(QString name,QString pass);
public slots:
    void slot_btnclicked(QString userName,QString passWord);

private:
    //注册提示的窗口引擎
    QQmlApplicationEngine engine_suc;
    QQmlApplicationEngine engine;//引擎：加载qml界面文件

    //qml文件的跟元素的指针（发出信息，想找qml文件中其他的控件，都得通过这个 指针）
    QObject* rootObject;

    QObject* rootObject_msg;
};

#endif // REGISTERWINDOW_H
